<template>
  <div class="container">
    <div class="th">
      <span class="label">这是左边</span>
      <span class="content">这是右边右边啊啊</span>
    </div>
    <div class="th">
      <span class="label">这是左边</span>
      <span class="content">这是右边右边啊啊</span>
    </div>
    <!-- <div class="item-a">header</div>
    <div class="item-b">main</div>
    <div class="item-c">sidebar</div>
    <div class="item-d">footer</div> -->
  </div>
</template>

<script>
export default {

}
</script>

<style>
.container {
  width: 100%;
  height: 300px;
  font-size: 16px;
  /* background:darkgray;
  display: grid;
  text-align: center;
  font-size: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto; */
  /* grid-template-areas: 
    "header header header header"
    "main main . sidebar"
    "footer footer footer footer"; */
}
.th{
  display: grid;
  /* grid-template: 'lable main'minmax(60px, auto) /1fr 1fr; */
  grid-template: minmax(60px, auto) /1fr 1fr;
  gap: 20px;
}
.label{
  /* text-align: right; */
  justify-content: end;
  /* grid-area: label; */
  /* justify-content: flex-end; */
}
.content{
  /* grid-area: content; */
}

.item-a {
  grid-area: header;
  background: chocolate;
}
.item-b {
  grid-area: main;
  background: cornsilk;
}
.item-c {
  grid-area: sidebar;
  background: darkcyan;
}
.item-d {
  grid-area: footer;
  background: darkkhaki;
}

</style>